name: code
run_id: commands[1]
env HOME: /home/jenkins
env LANG: C.UTF-8
env PATH: /w/workspace/sim-a1-interface-tox-sonarqube/.tox/code/bin:/opt/pyenv/bin:/tmp/venv-AtQl/bin:/opt/pyenv/shims:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin
env PIP_DISABLE_PIP_VERSION_CHECK: 1
env PIP_USER: 0
env PYTHONHASHSEED: 2417174610
env PYTHONIOENCODING: utf-8
env SSH_AGENT_PID: 5812
env SSH_AUTH_SOCK: ********************************
env TESTS_BASE_PATH: /w/workspace/sim-a1-interface-tox-sonarqube/near-rt-ric-simulator/tests
env TOX_ENV_DIR: /w/workspace/sim-a1-interface-tox-sonarqube/.tox/code
env TOX_ENV_NAME: code
env TOX_WORK_DIR: /w/workspace/sim-a1-interface-tox-sonarqube/.tox
env VIRTUAL_ENV: /w/workspace/sim-a1-interface-tox-sonarqube/.tox/code
env __TOX_ENVIRONMENT_VARIABLE_ORIGINAL_CI: true
metadata pid: 27620
cwd: /w/workspace/sim-a1-interface-tox-sonarqube
allow: /w/workspace/sim-a1-interface-tox-sonarqube/.tox/code/bin/*
cmd: pytest -o log_cli=true --cov-append --cov /w/workspace/sim-a1-interface-tox-sonarqube/near-rt-ric-simulator --cov-report xml --cov-report term-missing --cov-report html --cov-fail-under=70 /w/workspace/sim-a1-interface-tox-sonarqube/near-rt-ric-simulator/tests/test_std_1_1_3.py
exit_code: 0
============================= test session starts ==============================
platform linux -- Python 3.10.6, pytest-9.0.2, pluggy-1.6.0
cachedir: .tox/code/.pytest_cache
rootdir: /w/workspace/sim-a1-interface-tox-sonarqube
plugins: cov-7.0.0
collected 1 item

near-rt-ric-simulator/tests/test_std_1_1_3.py::test_apis 
-------------------------------- live log setup --------------------------------
WARNING  connexion.options:options.py:83 The swagger_ui directory could not be found.
    Please install connexion with extra install: pip install connexion[swagger-ui]
    or provide the path to your local installation by passing swagger_path=<your path>

WARNING  connexion.options:options.py:83 The swagger_ui directory could not be found.
    Please install connexion with extra install: pip install connexion[swagger-ui]
    or provide the path to your local installation by passing swagger_path=<your path>

PASSED                                                                   [100%]

=============================== warnings summary ===============================
near-rt-ric-simulator/tests/test_std_1_1_3.py::test_apis
near-rt-ric-simulator/tests/test_std_1_1_3.py::test_apis
  /w/workspace/sim-a1-interface-tox-sonarqube/.tox/code/lib/python3.10/site-packages/connexion/decorators/validation.py:16: DeprecationWarning: Accessing jsonschema.draft4_format_checker is deprecated and will be removed in a future release. Instead, use the FORMAT_CHECKER attribute on the corresponding Validator.
    from jsonschema import Draft4Validator, ValidationError, draft4_format_checker

near-rt-ric-simulator/tests/test_std_1_1_3.py::test_apis
near-rt-ric-simulator/tests/test_std_1_1_3.py::test_apis
  /w/workspace/sim-a1-interface-tox-sonarqube/.tox/code/lib/python3.10/site-packages/connexion/json_schema.py:16: DeprecationWarning: jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, which provides more compliant referencing behavior as well as more flexible APIs for customization. A future release will remove RefResolver. Please file a feature request (on referencing) if you are missing an API for the kind of customization you need.
    from jsonschema import Draft4Validator, RefResolver

near-rt-ric-simulator/tests/test_std_1_1_3.py::test_apis
  /w/workspace/sim-a1-interface-tox-sonarqube/.tox/code/lib/python3.10/site-packages/connexion/json_schema.py:17: DeprecationWarning: jsonschema.exceptions.RefResolutionError is deprecated as of version 4.18.0. If you wish to catch potential reference resolution errors, directly catch referencing.exceptions.Unresolvable.
    from jsonschema.exceptions import RefResolutionError, ValidationError  # noqa

near-rt-ric-simulator/tests/test_std_1_1_3.py::test_apis
  /w/workspace/sim-a1-interface-tox-sonarqube/.tox/code/lib/python3.10/site-packages/connexion/apps/flask_app.py:36: DeprecationWarning: 'app.json_encoder' is deprecated and will be removed in Flask 2.3. Customize 'app.json_provider_class' or 'app.json' instead.
    app.json_encoder = FlaskJSONEncoder

near-rt-ric-simulator/tests/test_std_1_1_3.py::test_apis
  /w/workspace/sim-a1-interface-tox-sonarqube/.tox/code/lib/python3.10/site-packages/connexion/spec.py:50: DeprecationWarning: Passing a schema to Validator.iter_errors is deprecated and will be removed in a future release. Call validator.evolve(schema=new_schema).iter_errors(...) instead.
    for error in instance_validator.iter_errors(instance['default'], instance):

near-rt-ric-simulator/tests/test_std_1_1_3.py: 28 warnings
  /w/workspace/sim-a1-interface-tox-sonarqube/.tox/code/lib/python3.10/site-packages/connexion/apis/flask_api.py:236: DeprecationWarning: '_request_ctx_stack' is deprecated and will be removed in Flask 2.3.
    setattr(flask._request_ctx_stack.top, 'connexion_context', context_dict)

near-rt-ric-simulator/tests/test_std_1_1_3.py: 28 warnings
  /w/workspace/sim-a1-interface-tox-sonarqube/.tox/code/lib/python3.10/site-packages/connexion/apis/flask_api.py:236: DeprecationWarning: '_request_ctx_stack' is deprecated and will be removed in Flask 2.3. Use 'g' to store data, or 'request_ctx' to access the current context.
    setattr(flask._request_ctx_stack.top, 'connexion_context', context_dict)

near-rt-ric-simulator/tests/test_std_1_1_3.py::test_apis
  /w/workspace/sim-a1-interface-tox-sonarqube/.tox/code/lib/python3.10/site-packages/flask/json/provider.py:188: DeprecationWarning: Setting 'json_encoder' on the app or a blueprint is deprecated and will be removed in Flask 2.3. Customize 'app.json' instead.
    warnings.warn(

near-rt-ric-simulator/tests/test_std_1_1_3.py::test_apis
  /w/workspace/sim-a1-interface-tox-sonarqube/.tox/code/lib/python3.10/site-packages/flask/json/provider.py:230: DeprecationWarning: 'JSONEncoder' is deprecated and will be removed in Flask 2.3. Use 'Flask.json' to provide an alternate JSON implementation instead.
    return json.dumps(obj, **kwargs)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
================================ tests coverage ================================
_______________ coverage: platform linux, python 3.10.6-final-0 ________________

Name                                                                        Stmts   Miss  Cover   Missing
---------------------------------------------------------------------------------------------------------
near-rt-ric-simulator/src/OSC_2.1.0/controllers/__init__.py                     0      0   100%
near-rt-ric-simulator/src/OSC_2.1.0/controllers/a1_mediator_controller.py     206     26    87%   107, 111-112, 124-126, 129-130, 163, 168-169, 172-173, 196, 225-227, 238, 248, 253-256, 298, 330-331
near-rt-ric-simulator/src/OSC_2.1.0/main.py                                   182     38    79%   48-51, 62, 94-95, 99-100, 103, 121, 124-125, 129, 135, 150-151, 173, 175, 179, 193-194, 223, 244-253, 259-265, 270
near-rt-ric-simulator/src/OSC_2.1.0/models/__init__.py                          0      0   100%
near-rt-ric-simulator/src/OSC_2.1.0/models/enforceStatus.py                    28      0   100%
near-rt-ric-simulator/src/OSC_2.1.0/var_declaration.py                         17      0   100%
near-rt-ric-simulator/src/STD_1.1.3/a1.py                                     134     11    92%   57-59, 66, 71, 78-79, 125, 166-167, 179
near-rt-ric-simulator/src/STD_1.1.3/main.py                                   113     28    75%   78-79, 89-90, 122-139, 145-151, 170, 177, 182
near-rt-ric-simulator/src/STD_1.1.3/var_declaration.py                         11      0   100%
near-rt-ric-simulator/src/common/maincommon.py                                 39      8    79%   34-35, 53, 56, 60-63, 72
near-rt-ric-simulator/src/common/payload_logging.py                            32      6    81%   32-39
near-rt-ric-simulator/src/common/utils.py                                      10      9    10%   20-29
near-rt-ric-simulator/test/common/compare_json.py                              63     24    62%   46, 57, 67, 71, 74, 80, 83, 87, 103-105, 108-127
near-rt-ric-simulator/tests/test_osc_2_1_0.py                                 371      0   100%
near-rt-ric-simulator/tests/test_std_1_1_3.py                                 209      0   100%
near-rt-ric-simulator/tests/unittest_setup.py                                  29      2    93%   63-64
---------------------------------------------------------------------------------------------------------
TOTAL                                                                        1444    152    89%
Coverage HTML written to dir htmlcov
Coverage XML written to file coverage.xml
Required test coverage of 70% reached. Total coverage: 89.47%
======================= 1 passed, 65 warnings in 12.37s ========================
